package cn.stylefeng.guns.sys.modular.system.service;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.sys.modular.system.entity.GroupNotice;
import cn.stylefeng.guns.sys.modular.system.model.params.GroupNoticeParam;
import cn.stylefeng.guns.sys.modular.system.model.result.GroupNoticeResult;
import cn.stylefeng.roses.core.reqres.response.ResponseData;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jiangge
 * @since 2021-07-26
 */
public interface GroupNoticeService extends IService<GroupNotice> {

    /**
     * 新增
     *
     * @author jiangge
     * @Date 2021-07-26
     */
    void add(GroupNoticeParam param);

    /**
     * 删除
     *
     * @author jiangge
     * @Date 2021-07-26
     */
    void delete(GroupNoticeParam param);

    /**
     * 更新
     *
     * @author jiangge
     * @Date 2021-07-26
     */
    void update(GroupNoticeParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author jiangge
     * @Date 2021-07-26
     */
    GroupNoticeResult findBySpec(GroupNoticeParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author jiangge
     * @Date 2021-07-26
     */
    List<GroupNoticeResult> findListBySpec(GroupNoticeParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author jiangge
     * @Date 2021-07-26
     */
     LayuiPageInfo findPageBySpec(GroupNoticeParam param);

    LayuiPageInfo findNoticePagePushData(GroupNoticeParam param);

    LayuiPageInfo findNoticePageReceiveData(GroupNoticeParam param);

    GroupNoticeResult findOneNoticeById(GroupNoticeParam param);

    ResponseData delNotice(GroupNoticeParam param);

    LayuiPageInfo findNoticePageBeenSeenData(GroupNoticeParam param);
}
